-- GENERATED SPELL FOR [Mosh'Ogg Shaman] --


function spell0_679(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_679', 30337, 1)
end

function spell1_679(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(12058,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_679', 3000, 1)
end

function spell2_679(pUnit, Event) --@Healing Ward,Self--
pUnit:FullCastSpellOnTarget(11899,pUnit)
pUnit:RegisterEvent('Sorts_679', 32000, 1)
end

function Sorts_679(pUnit, Event)
local choix_sorts_679 = math.random(0, 2)
if choix_sorts_679 == 0 then
pUnit:RegisterEvent('spell0_679', 1, 1)
end
if choix_sorts_679 == 1 then
pUnit:RegisterEvent('spell1_679', 1, 1)
end
if choix_sorts_679 == 2 then
pUnit:RegisterEvent('spell2_679', 1, 1)
end
end

function mob679_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_679', math.random(1500, 3000), 1)
end

function mob679_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob679_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob679_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(679, 1, 'mob679_Action')
RegisterUnitEvent(679, 2, 'mob679_Leave')
RegisterUnitEvent(679, 3, 'mob679_Kill')
RegisterUnitEvent(679, 4, 'mob679_Die')
